﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="/Style/JS/Aries.Loader.js"></script>
    <style>
        span > b {
            cursor: pointer;
            margin-left: 50px;
            color: red;
        }
    </style>
</head>
<body>
    <table id="dg"></table>
</body>
</html>
<script type="text/javascript">
    var excelID = AR.Utility.queryString('id');
    var tableNames = AR.Utility.queryString('tableNames');
    var mid = AR.Utility.getSysmid();
    AR.Combobox.setParas({ "C_SYS_Table": tableNames, "C_SYS_Column": tableNames })
    var dg = new AR.DataGrid('Config_ExcelInfo');
    dg.options = {
        sortName: "tablename", sortOrder: "asc",
        onBeforeLoad: function (param) {
            param.ExcelID = excelID;
            param.sys_mid = mid;
        },
        defaultWhere: [{ name: 'ExcelID', pattern: 'equal', value: excelID }]
    }
    dg.defaultInsertData = {
        excelid: excelID, createtime: function () {
            return new Date().format("yyyy-MM-dd");
        }()
    };
    dg.isEditor = true;
    dg.ToolBar.add('关闭窗口', 'AR.Utility.Window.close', 4);
    dg.bind();
</script>
